﻿@(Html.DevExtreme().Chart()
    .ID("chart")
    .Title("Australian Medal Count")
    .CommonSeriesSettings(s => s
        .Type(SeriesType.StepArea)
        .ArgumentField("Year")
        .Steparea(a => a.Border(b => b.Visible(false)))
    )
    .Series(s => {
        s.Add().ValueField("Bronze").Name("Bronze Medals").Color("#cd7f32");
        s.Add().ValueField("Silver").Name("Silver Medals").Color("#c0c0c0");
        s.Add().ValueField("Gold").Name("Gold Medals").Color("#ffd700");
    })
    .ArgumentAxis(a => a
        .ValueMarginsEnabled(false)
        .Label(l => l
            .Format(f => f
                .Type(Format.Decimal)
            )
        )
    )
    .Export(e => e.Enabled(true))
    .Legend(l => l
        .VerticalAlignment(VerticalEdge.Bottom)
        .HorizontalAlignment(HorizontalAlignment.Center)
    )
    .DataSource(Model)
)
